Skip to content

Conversation

P-Courteille
Copy link
Contributor

📝 Description

This PR is a fix for issue 990.


🐛 Bug

The clean script from visual reporter doesn't work in Windows
"clean": "rimraf coverage build *.tsbuildinfo",

Because pathArg will refuse a path with "*" without the correct option.

    if (platform === 'win32') {
        const badWinChars = /[*|"<>?:]/;
        const { root } = parse(path);
        if (badWinChars.test(path.substring(root.length))) {
            throw Object.assign(new Error('Illegal characters in path.'), {
                path,
                code: 'EINVAL',
            });
        }
    }

🛠️ Solution

Replace:
"clean": "rimraf coverage build *.tsbuildinfo"
By:
"clean": "rimraf coverage build --glob *.tsbuildinfo"

@P-Courteille P-Courteille changed the base branch from main to ws/rewrite-core July 19, 2025 16:28
@wswebcreation wswebcreation deleted the branch webdriverio:ws/rewrite-core July 22, 2025 07:38
@wswebcreation
Copy link
Member

@P-Courteille

Sorry, this was automatically closed when I merged my branch to main. Can you change your PR or open a new one based on main?

Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants